package com.ptswitch.material.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hxzon.project.EDao;
import com.ptswitch.material.model.BomMaterial;
import com.ptswitch.material.service.BomMaterialService;

@Service("bomMaterialSer")
public class BomMaterialServiceImpl extends LoggerService implements BomMaterialService {

	@Resource
	private EDao<BomMaterial> bomMaterialDao;

	public long countAll() {
		return bomMaterialDao.countAll();
	}
	
	public void delete(String id){
		bomMaterialDao.delete(id);
	}

	public void delete(BomMaterial model) {
		bomMaterialDao.delete(model);
//		Recorder.log(model);
	}
	
	public void deleteAll(){
		bomMaterialDao.deleteAll();
	}
	
	public void deleteAll(List<BomMaterial> models){
		bomMaterialDao.deleteAll(models);
	}

	public BomMaterial get(String id) {
		return bomMaterialDao.get(id);
	}

	public void save(BomMaterial model) {
		bomMaterialDao.save(model);
	}
	
	public void saveAll(List<BomMaterial> models){
		bomMaterialDao.saveAll(models);
	}

	public long countLike(BomMaterial model) {
		// TODO Auto-generated method stub
		return 0;
	}

	public long countLike(String like) {
		// TODO Auto-generated method stub
		return 0;
	}
	
	public List<BomMaterial> getAll(){
		return bomMaterialDao.getAll();
	}

	public List<BomMaterial> getAll(long first, long size) {
		// TODO Auto-generated method stub
		return null;
	}

	public List<BomMaterial> getLike(BomMaterial model, long first, long size) {
		// TODO Auto-generated method stub
		return null;
	}

	public List<BomMaterial> getLike(String like, long first, long size) {
		// TODO Auto-generated method stub
		return null;
	}
	
	public String valid(BomMaterial model){
		return null;
	}

}
